package com.nut.lmsc.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.nut.lmsc.api.req.ClientLoginReq;
import com.nut.lmsc.api.req.MemberQueryReq;
import com.nut.lmsc.common.Result;
import com.nut.lmsc.entity.Member;

import java.io.Serializable;
import java.util.Set;

public interface MemberService {

    Result<IPage<Member>> listPage(MemberQueryReq req);

    Result<Member> getById(Long memberId);

    Result add(Member member);

    Result updateById(Member member);

    Result deleteByIds(Set<Serializable> ids);

    Result<String> clientLogin(ClientLoginReq req);

    Result<String> merchantLogin(ClientLoginReq req);

}
